<?php
define('IN_GAME', 1);

if (IN_GAME != 1)
{
  require './wait-for-coming/index.html';
  exit;
}

require './global.php';

$progress = userget('progress');
if(!$progress) $progress = 0;
?>
<!DOCTYPE html>
<html>
  <head lang="cn">
    <meta charset="UTF-8">
    <title>少年班学院&amp;信息安全俱乐部-黑客大赛</title>
    <link rel="shortcut icon" href="favicon.ico" type='image/x-icon'>
    <link rel="icon" href="favicon.ico" type='image/x-icon'>
    <style type="text/css">
    body
    {
      background: url(plasma.jpg) no-repeat fixed;
      background-size: 100% 100%;
      font-family: Georgia, "Times New Roman", "Microsoft YaHei", "微软雅黑", STXihei, "华文细黑", serif;
    }
    .col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9
    {
      border: 1px solid #000000;
      border-radius: 6px;
      box-shadow: 0px 0px 12px #000000;
      margin-left: 12px;
      margin-right: 12px;
      background-color: #f0f0f0;
      opacity: 0.7;
      padding: 2%;
    }
    h1{font-size:54px}
    h2{font-size:45px}
    h3{font-size:36px}
    h4{font-size:27px}
    h5{font-size:21px}
    h6{font-size:18px}
    p,td,tr{font-size:18px}
    .text-success
    {
      color: #444444;
      text-shadow: 0px 0px 12px #40c060;
      font-weight: 600;
    }
    .text-warning
    {
      color: #444444;
      text-shadow: 0px 0px 12px #ffd000;
      font-weight: 600;
    }
    .text-danger
    {
      color: #444444;
      text-shadow: 0px 0px 12px #e01010;
      font-weight: 600;
    }

    input
    {
      margin-bottom: 6px;
      margin-top: 6px;
      border: 1px solid #000000;
      border-radius: 3px;
      box-shadow: 0px 0px 6px #000000;
      background-color: #000000;
      color: #ffffff;
      font-family: Georgia, "Times New Roman", "Microsoft YaHei", "微软雅黑", STXihei, "华文细黑", serif;
    }
    
    #progress
    {
      height: 16px;
      display: block;
      border-radius: 8px;
      box-shadow: 0px 0px 8px #f0a030;
      background-color: #f0a030;
      width: 43%;
    }
    #progress_unfilled
    {
      height: 16px;
      display: block;
      border-radius: 8px;
      box-shadow: 0px 0px 8px #444444;
      background-color: #444444;
      width: 100%;
    }
  </style>
  <?php
      if(isset($_GET['submit']))
          include 'submit-'.$progress.'.php';
  ?>
  </head>
  <body>
    <div class="container">
      <?php
          if(isset($_GET['login']))
              include 'login.php';
          else
              include 'progress-' . $progress . '.php';
      ?>
    </div>
  </body>
</html>
